﻿using System;

namespace ExFlash.Records
{
    public class SoundEnvelope : ISwfSerializable
    {
        public UInt32 Pos44
        {
            get;
            private set;
        }

        public UInt16 LeftLevel
        {
            get;
            private set;
        }

        public UInt16 RightLevel
        {
            get;
            private set;
        }
        
        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            Pos44 = reader.ReadUInt32();
            LeftLevel = reader.ReadUInt16();
            RightLevel = reader.ReadUInt16();
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
